package com.example.project22_editingmediaplayer.objects;

import android.graphics.Bitmap;
import android.os.Parcel;
import android.os.Parcelable;

public class SongObject implements Parcelable {
	private int _id;
	private String _path;
	private String _name;
	private String _artist;
	private String _genre;
	private int _rating = 0;
	private String _isFavorite;
	private String _isRecent;
	private boolean isplay = false;
	private boolean isCheck = false;
	private Bitmap _bitmap;

	public Bitmap get_bitmap() {
		return _bitmap;
	}

	public void set_bitmap(Bitmap _bitmap) {
		this._bitmap = _bitmap;
	}

	public boolean isCheck() {
		return isCheck;
	}

	public void setCheck(boolean isCheck) {
		this.isCheck = isCheck;
	}

	public String get_isFavorite() {
		return _isFavorite;
	}

	public boolean isIsplay() {
		return isplay;
	}

	public void setIsplay(boolean isplay) {
		this.isplay = isplay;
	}

	public SongObject() {
		// TODO Auto-generated constructor stub
	}

	public SongObject(int _id, String _path, String _name, String _artist,
			String _genre, String _isFavorite) {
		super();
		this._id = _id;
		this._path = _path;
		this._name = _name;
		this._artist = _artist;
		this._genre = _genre;
		this._isFavorite = _isFavorite;
		this._isRecent = _isRecent;
	}


	public SongObject(int _id, String _path, String _name, String _artist, int _rating) {
		super();
		this._id = _id;
		this._path = _path;
		this._name = _name;
		this._artist = _artist;
		this._rating = _rating;
	}

	public String get_isRecent() {
		return _isRecent;
	}

	public void set_isRecent(String _isRecent) {
		this._isRecent = _isRecent;
	}

	public void set_isFavorite(String _isFavorite) {
		this._isFavorite = _isFavorite;
	}

	public int get_rating() {
		return _rating;
	}

	public void set_rating(int _rating) {
		this._rating = _rating;
	}

	public String get_genre() {
		return _genre;
	}

	public void set_genre(String _genre) {
		this._genre = _genre;
	}

	public int get_id() {
		return _id;
	}

	public void set_id(int _id) {
		this._id = _id;
	}

	public String get_path() {
		return _path;
	}

	public void set_path(String _path) {
		this._path = _path;
	}

	public String get_name() {
		return _name;
	}

	public void set_name(String _name) {
		this._name = _name;
	}

	public String get_artist() {
		return _artist;
	}

	public void set_artist(String _artist) {
		this._artist = _artist;
	}

	public boolean get_isplay() {
		return isplay;
	}

	public void set_isplay(Boolean _artist) {
		this.isplay = _artist;
	}

	@Override
	public int describeContents() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		// TODO Auto-generated method stub
		dest.writeInt(_id);
		dest.writeString(_path);
		dest.writeString(_name);
		dest.writeString(_artist);
		dest.writeString(_genre);
		dest.writeInt(_rating);
		dest.writeString(_isFavorite);
		dest.writeString(_isRecent);

	}

	public static final Parcelable.Creator<SongObject> CREATOR = new Parcelable.Creator<SongObject>() {

		@Override
		public SongObject createFromParcel(Parcel in) {
			// TODO Auto-generated method stub
			return new SongObject(in);
		}

		@Override
		public SongObject[] newArray(int size) {
			// TODO Auto-generated method stub
			return new SongObject[size];
		}
	};

	private SongObject(Parcel in) {
		_id = in.readInt();
		_path = in.readString();
		_name = in.readString();
		_artist = in.readString();
		_genre = in.readString();
		_rating = in.readInt();
		_isFavorite = in.readString();
		_isRecent = in.readString();

	}
}
